home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- '''
- Wraps the Gnome Assistive Technology Service Provider Interface for use in
- Python. Imports the bonobo and ORBit modules. Initializes the ORBit ORB.
- Activates the bonobo Accessibility Registry. Loads the Accessibility typelib
- and imports the classes implementing the AT-SPI interfaces.
-
- @var Registry: Reference to the AT-SPI registry daemon intialized on successful
- import
- @type Registry: registry.Registry
-
- @author: Peter Parente
- @organization: IBM Corporation
- @copyright: Copyright (c) 2005, 2007 IBM Corporation
- @license: LGPL
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-
- Portions of this code originally licensed and copyright (c) 2005, 2007
- IBM Corporation under the BSD license, available at
- U{http://www.opensource.org/licenses/bsd-license.php}
- '''
- __version__ = (1, 26, 0)
- REGISTRY_IID = 'OAFIID:Accessibility_Registry:1.0'
- TYPELIB_NAME = 'Accessibility'
- import ORBit
- import bonobo
- orb = ORBit.CORBA.ORB_init()
-
- try:
- reg = bonobo.activation.activate_from_id(REGISTRY_IID, 0, 0)
- except Exception:
- reg = None
-
- ORBit.load_typelib(TYPELIB_NAME)
- import registry
- Registry = registry.Registry(reg)
- registry.Registry = Registry
- del registry
- from accessible import setCacheLevel, getCacheLevel, clearCache, printCache
- from constants import *
- from utils import *
- del reg
- del orb
-